package com.nf.service;

import com.nf.dao.TeacherDao;
import com.nf.entity.Teacher;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Scope("prototype")
public class TeacherServiceImpl implements TeacherService{
    @Autowired
    private TeacherDao teacherDao=null;
    public List<Teacher> getAllTeacher() {

        return teacherDao.getAllTeacher();
    }
}
